<%-- 
    Document   : header
    Created on : Nov 14, 2009, 5:27:52 AM
    Author     : fdcube
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:div cssClass="header">
    <s:if test="#session.uid == '' or #session.uid == null">
        <s:a action="BbsAction!ShowBbs" namespace="/bbs">论坛</s:a>
        <s:a value="/user/login.jsp">登录</s:a>
        <s:a value="/user/register.jsp">注册</s:a>
    </s:if>
    <s:else>
        <s:text name="%{#session.uname}"/>
        <s:text name="%{#session.uabout}"/>
        <s:a action="BbsAction!ShowBbs" namespace="/bbs">论坛</s:a>
        <s:if test="#session.status != '' and #session.status != null and #session.status != 0">
            <s:a action="BbsAction!SAddPost" namespace="/bbs">发新帖</s:a>
            <s:a action="BbsAction!ShowPosts" namespace="/bbs">管理帖子</s:a>
        </s:if>
        <s:a action="UserAction!SEdit" namespace="/user">修改个人信息</s:a>
        <s:a action="UserAction!Logout" namespace="/user">退出</s:a>
    </s:else>
</s:div>